import 'package:gold/generated/json/base/json_field.dart';
import 'package:gold/generated/json/point_statistics_model.g.dart';
import 'dart:convert';
export 'package:gold/generated/json/point_statistics_model.g.dart';

@JsonSerializable()
class PointStatisticsModel {
	/// 剩余积分
	@JSONField(name: 'remaining_points')
	int? remainingPoints;
	/// 预计今日到账
	@JSONField(name: 'incoming_points')
	int? incomingPoints;
	/// 累计积分
	@JSONField(name: 'total_points')
	int? totalPoints;
	/// 已分配
	@JSONField(name: 'allocated_points')
	int? allocatedPoints;
	/// 待分配
	@JSONField(name: 'pending_points')
	int? pendingPoints;
	/// 累计赠予
	@JSONField(name: 'total_gifted_points')
	int? totalGiftedPoints;
	/// 累计抵扣
	@JSONField(name: 'total_redeemed_points')
	int? totalRedeemedPoints;

	PointStatisticsModel();

	factory PointStatisticsModel.fromJson(Map<String, dynamic> json) => $PointStatisticsModelFromJson(json);

	Map<String, dynamic> toJson() => $PointStatisticsModelToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}